import { ObservationWriter } from "../ObservationWriter";
import { ReflectionSensorBase, ReflectionSensorInfo } from "./ReflectionSensorBase";

export class Vector4ReflectionSensor extends ReflectionSensorBase {
    constructor(reflectionSensorInfo: ReflectionSensorInfo) {
        super(reflectionSensorInfo, 4);
    }

    writeReflectedField(writer: ObservationWriter): void {
        const vector4 = this.getReflectionValue();
        writer.addVector4(vector4);
    }

}